package com.cssw.fyzb.busi.service.acct;

import com.cssw.fyzb.core.model.dodb.CmfLiveRedPack;
import com.cssw.fyzb.core.model.eos.RedPackLogEo;
import com.cssw.fyzb.core.model.vo.acct.RedPackDetailsVo;
import com.ydn.dbframe.plugin.activerecord.Page;

import java.math.BigDecimal;

/**
 * @Author zhouxu
 * @create 2020-12-24 15:14
 */
public interface RedPackService {

    Long createLiveRedPack(Long userId, Long liveId, Integer num, BigDecimal money, String title, String effTime);

    Long createPersonRedPack(Long userId, Long otherId, BigDecimal money, String title);

    Double recvRedPack(Long userId, Long redPackId);

    Double takeRedPack(Long userId, Long redPackId);

    Page<RedPackLogEo> listLog(Long userId, Integer page, Integer limit);

    CmfLiveRedPack queryLatestLivePack(Long liveId);

    Page<RedPackLogEo> listRecieveLogById(Long redPackId, String changeType, Integer page, Integer limit);

    RedPackLogEo queryPersonRecieve(Long redPackId, Long userId);

    Page<RedPackLogEo> listPersonSendPack(Long fromUserId, Integer page, Integer limit);

    //红包详情
    RedPackDetailsVo RedPackDetails(Long redId,String tradeType);

}
